package com.drug.controller;

import com.drug.domain.CaiGouStatement;
import com.drug.domain.Result;
import com.drug.service.SettleaccountsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/Settleaccounts")
public class SettleaccountsController {
    @Autowired
    private SettleaccountsService settleaccountsService;


    /**
     * 多条件查询结算
     * @param
     * @param
     * @return
     */
    @ResponseBody
    @RequestMapping("/findjiesuan")
    private Result findjiesuandan(@RequestParam Map map,@RequestParam Integer pageNum){
        return settleaccountsService.findjiesuandan(map,pageNum);
    }
    /**
     * 多条件查询添加
     *
     */
    @ResponseBody
    @RequestMapping("/findJieSuanDanAdd")
    private Result findJieSuanDanAdd(CaiGouStatement caiGouStatement){
        return settleaccountsService.findJieSuanDanAdd(caiGouStatement);
    }
}
